home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_9.lha
/
5_9
/
5_9b3.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
378b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
oid set_cs(char_stack& cs, int sz)
cs.top = cs.s = new char[cs.size=sz];
oid delete_cs(char_stack &cs)
delete cs.s;
oid push_cs(char_stack& cs, char c)
*cs.top++ = c;
har pop_cs(char_stack& cs)
return *--cs.top;